<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@page import="com.adtech.adms.*"%>
<%@page import="com.adtech.core.exception.ErrorCode"%>
<%@page import="com.adtech.core.web.action.AjaxResult"%>
<%@page import="com.adtech.core.Settings"%>

<script type="text/javascript" src="<s:url value='/script/urlencode.js'/>"></script>
<script type="text/javascript" src="<s:url value='/script/tdqs.js'/>"></script>


<script type="text/javascript" language="javascript">
//上下文路径
TDQS.CONTEXT_PATH = '<s:url value="/"/>';
//Ajax响应成功状态标识
TDQS.AJAX_STATUS_SUCCESS = <%=AjaxResult.STATUS_SUCCESS%>;
//Ajax响应失败状态标识
TDQS.AJAX_STATUS_FAILTURE = <%=AjaxResult.STATUS_FAILURE%>;
//Session过期错误码
TDQS.SESSION_TIMEOUT = '<%=ErrorCode.SESSION_TIMEOUT%>';
//用于区分普通请求和Ajax请求的标识，通过tdqsAjax提交时自动追加
TDQS.PARAM_KEY_AJAX = '<%=Constants.PARAM_KEY_AJAX%>';
//Session ID，用于Uploadify上传组件
TDQS.SESSION_ID = '<%=session.getId()%>';
TDQS.SYNC_NODE = '<%=Settings.SYNC_NODE%>';
</script>